package com.lifeng.springboot.demo;

import org.apache.log4j.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SpringBootApplication
public class Demo1 {
	private static Logger logger = Logger.getLogger(Demo1.class);
	@RequestMapping("/")
    public String demo1() {
        return "Hello World!";
    }
    public static void main(String[] args) throws Exception {
    	logger.debug("调试日志。。。。。");
        SpringApplication.run(Demo1.class, args);
    }
}
